Improved Tool selection
Improved Tool selection
I'm doing the "setState after reading Tool#activate in Paper.js" and it's a bug where I forgot to setState.
To begin with, "Tool#activate is called by setState→useEffect" is correct.
React should have been the single source and the Paper.js side should have been subordinate and updated when editing there.
---
This page is auto-translated from /nishio/Tool選択を改善. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I'm very happy to spread my thought to non-Japanese readers.